[DDMD] Do not rely on implicit conversion from 0 to enum type

This is not allowed in D.