Fix an issue with type decls in instances