Fixed issue #222, the permission flags of dynamic grants are now preserved when a
dynamic type is changed in the schema editor.