[DDMD] [refactor] Move voidInitLiteral into a free function

Pretty trival.  I used `if (t->ty == ...)` instead of a visitor because there's no inheritance or other tricky stuff going on here.