Removed incorrect Container.toArray and made concatenation only apply to arrays