Re-worked getContainerBounds method to work with translations and rotations of nested containers and entities. Also added bounds for segment sets