fix for #7628

adding a removePoint method, which can also take a negative index to start
removing vertices from the end.

actual fix for #7628 was to not remove the last node, but the one before that.

this pull request supersedes https://github.com/qgis/Quantum-GIS/pull/542 which was by accident done in my master branch