object: add repository argument to object_as_type