Make sure the prefix is a class (ROOT-5856).