Basefix

Now check types are the same for base class as objects that were of different type but same ID were considered equal. 

Also adds skeleton for data object so tests don't fail.