Explicitly coerce coordinates to floats.

Fixes the JRuby memory errors.