Fix WeakRef constructor and double initialization of WeakRef class

The class was setup twice, actually creating two WeakRef classes. This
is because the ontology already sets up the WeakRef class. Therefore the
additional logic can be removed.