ticket #140 : added back parsing of polygon and polyline objects when using JSON