I haven't tried this, but I'm not too surprised you're having trouble editing your m-enabled features. The JavaScript API doesn't really have anything built in to deal with m or z values. I talked with a developer about this at the Dev Summit -- they are hoping to incorporate z and m capabilities at 4.x.