Do not use src type if type from template cannot be resolved.