Allow type decls in functions