fix bugs under ruby 2.0.0

the float became a immediate number, so it cannot be extended which
lead to a Type bug that the singlon class cannot be extended.