Both ObjList and ObjMap have the same fields (capacity and count). Therefor it makes sense to make them the same type.