Change the last two args of split/rsplit to 'limit' and 'keep' keywords

Fixes #6412.

cc: @StefanKarpinski 

Another change that would probably go along with this is having `replace(str, pat, replacement; limit=0)`