Fix speedups for Points in LineString constructor

Fixes #150.
Adds similar code from #102 to speedups. Adds a test.