Geo lib geo object merge bug fix

Added a test case and corrected bug.
Substitutes #191.