extract-ghkm: use square brackets for glue rule internal tree structure