add ``regexp_matches`` scalar function implementation

no the newly added newLiteral method works like this, but maybe i'll change it