bugfix in GTreeDetectorHits
changes needed to get it build. First workable merge. Not checked yet.