Utility for calculating recursive size of a container object.