optimize isFunction and isNumber, fix Text.right/left