parser: fix parsing decls with anon params