Perform size checks during uploads

Verify the consistency between the declared size and the object's hashmap during uploads/object updates.

Fix and update the respective test.