Remove duplicate polygon points if detected

This fixes https://github.com/rgeo/rgeo/issues/49 and https://github.com/rgeo/activerecord-postgis-adapter/issues/70