Allow <docType>Of merging - useful for plugins

Allowed merging for custom <docType>Of, useful for plugins. Previously limited to methodOf, propertyOf and eventOf. For example, for a plugin I may create a new docType (e.g. path) which needs to be merged with a parent. 

With this change you can now automatically use the merge functionality as long as the docType matches the <docType>Of.