I am using geofield with openlayers and can save point data, but not polygon or linestring data.

Everything works as expected, can draw lines and polygons, but receive the following errors when saving the node:

Not allowed to submit a geometry of type Polygon
Not allowed to submit a geometry of type LineString

If I display the data field, the correct WKT is displayed, but any attempt to save throws these errors.

Is this a bug, or am I missing a something obvious?