fix for ROOT-6622 (doubles were already dropped in priority, i.e. after classes, but const double was not)