ome: xerces: Generalise DOM class wrapping

- Wrapper class template wraps all DOM types
- Base class template is the root of the wrapper hierarchy
  and can be managed or unmanaged depending upon whether
  the wrapper should be responsible for releasing of the
  wrapped value.