PHOENIX-1258 Fix RegexpSubstrFunction serialization

Correct deserialization of RegexpSubstrFunction so that it can
be used in filters and group-by statements.

Contributed by Jay Wong.