Fixes an annoying bug in CHbench

Some errors in inheritance of static attributes prevented the correct query choice. Fixed now.