Preserve metadata of batch edited resources
Fixes #29