Added support for merging from custom mapping types.