Add error reporting for type_declr and var_declr