[DDMD] Fix Object -> size_t casts to go through void*

These were added by Walter's recent hash changes and are not valid in D.