Explicitly coerce coordinates to floats

Explicitly coerce coordinates to floats, so that they are converted properly by FFI under JRuby.  This fixes a number of failing specs under JRuby.