Fix json_controller::calculate_center() for both core and sharing plugin

Building on #1233 and #1232 .. this normalizes ```$marker``` values in calculate_center() to objects.