Work around moarvm/jvm bug

This lets the module build/test successfully on moarvm and jvm backends. Parrot is still currently broken, due to Date.succ not working properly.

(also includes a couple of warning cleanups)