support for JTS geoms that support M values: bugfix