Create typedef
Assert that feature.get('foo') returns a geometry
Add a getGeometry method