fix for ROOT-5580, using kIsConstructor