Generalized the DerivedType and DelegateType functions to also work for other types than 'using_'.
Generalized the DerivedType and DelegateType functions to also work for other types than 'using_'.

erikvalkering/smartref,erikvalkering/smartref,erikvalkering/smartref