implementing toJSON for LatLng and LatLngBounds

It's useful to have LatLng and LatLngBounds toJSON properly.