fix false positive when checking lhs of type declarations for being type decls themselves