Switch math/collision scalar types to double.

This suppresses a few issues that should not exist, but both these systems should use double precision, anyway; it's the internal math type.