[RDY] systemlist: add `keepempty` option to preserve final newline

Broken out of #1182 , this adds an option to `systemlist()` to preserve information about about the final newline ( it is named as `keepempty` of `split()`. ) Also update the documentation of the present behaviour.
Is there a test for empty lines in the middle?