Add NQP version of split_string_constant

Also switch Perl 5 and Perl 6 variants to while loops to match NQP,
and add regex tag to split_string_regex.