Fixed an issue with type compatibility in decls.