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.

Fixes #82.