Added end-to-end tests for to_number() with pattern string.  Fixed serialization in ToNumberFunction.