Improve argument validation for maktaba#buffer#Overwrite().

- Check that 1 <= N <= line('$') for both startline and endline.
- Check that startline <= endline when using the Python implementation.
- Add tests for the above.
Merge pull request #83 from malcolmr/verify_buffer_overwrite_args

Improve argument validation for maktaba#buffer#Overwrite().