Add numeric type support to TO_CHAR() for issue #189