Add type info for sort/to_number/to_string