preserve trailing separator for String#lines

I made a slight mistake when implementing String#lines w/o block given. I forgot to preserve the separator.

I also added a fix to not restore the separator on the last entry if it wasn't present in the original string. This behavior is consistent w/ the behavior of Ruby as I deduced from comparing outputs.