fix string split, support regex
return a regexp if passed to RegExp(), added regression tests
Merge pull request #143 from yawnt/fix-string-split

fix string split, support regex