Fix splitting of empty strings on regex with trim: true

Make String.split and Regex.split called on empty string with
trim: true return []. Add testcase for String.split, fix incorrect
testcase for Regex.split.
Thanks, I fixed this in the next commit.