Improve geospatial encoder

Fixes https://github.com/numenta/nupic/issues/1014.

@scottpurdy