[DDMD] Do not use array length trick

Remove code that looks like this: `sizeof(arr) / sizeof(arr[0])`

Obviously this doesn't work as-is in D, and the hack to support it is really really really really really really really ugly.

New code either uses a constant for the length, or a sentinel value.