fixed regexp_matches and regexp_replace

for comparison against IS (NOT) NULL
and provide error message when regex_matches arguments are of incorrect type
Merge pull request #1306 from crate/h/regex-fixes

H/regex fixes