PERL-221 fix type issues and constructor call for regexps
PERL-221 finished tests for regexp objects