added ObjectType class; fixed a few things in LooseObject
started on LooseObjectTest