Revert "Use floats in lua, not doubles"

This reverts commit 78486278f3869d99ba5a345a16e6564e59024529. Shouldn't
be necessary any more, I've added workarounds to the mods instead. Still
a performance issue, but not one I'm going to worry about.