Fixed Object Index With Inheritance

It was due to the object id not being passed up the constructor chain only
the instance id was, also fixed instance destrucstion, now the with
construct needs fixed.