consider parent classes of primitive wrappers for resolving templates