Fix method prototype syntax for consistency.
Alias #as_json to #to_jsonable for better consistency with JSON serializers.

Do the same with #to_geosonable and #as_geojsonable.
Add tests for #as_json and remove unnecessary #to_jsonable tests.