fixed regexp_matches and regexp_replace

when used in IS (NOT) NULL predicate
and provide error message when regex_matches arguments are of incorrect type
Merge pull request #1307 from crate/h/regex-hotfix

fixed regexp_matches and regexp_replace