Polyline encoding: use proper rounding.

This align with unit testing results from the web.
Add unit-testing for small neg delta.
Replace reference to inexisting function in tests.