tree-walk: support :(attr) matching