[DDMD] [refactor] Move walkAllVars into a visitor class

And since this is the last user, delete the function-pointer apply wrapper.

Since this touches `interpret.c` it will need to wait for @WalterBright / @donc to approve.