Added the possibility to manually define the reference class in ObjectCollection at instance initialization.