fix applyMetadata2DataObject
- don't use "imeta cp", because that would not respect Ida defaults
- check for template=target outside this method