fix for ROOT-6697: take 'bool' into account for overload selection