Be able to use Class.descendants and Class.ancestors properly when cache_classes is turned off (e.g. development mode)