Add ITypeNameResolver for painless type resolving