Better error reporting for declarations.