Fix bugs in float_key and varchar_key on supporting infinity