adding toArray method to Container
making a test for precedence of overrides