Fix morph to have only one slash in the ID

Affected are all resources which are also ZDB resources.

See #605.

* update tests