Fixes "str.split" with "maxsplit", enhances tests for "str.split" and "rsplit"

Sorry for the bad code yesterday.
Fixed now, with new tests that pass, and would detect the previous bad behavior
of split/rsplit