Dumo bugfixes to physics tick function and elsewhere