[BUGFIX] Fix recursion detection in instantiateClass
When in ObjectManager->instantiateClass() the speedup case was
used, recursion detection would potentially fail, as it returns
early without removing the class name from the list of classes
currently being instantiated.
Releases: 1.1, 1.2