Fixed Data binding warnings by changing kLevelSettings from type Array to ArrayCollection and using getItemAt() to access elements.

Since it is a wrapper around Array, ArrayCollection can be treated like either an Array or like a collection. Also added type Number to var mean in calculateSampleMean() to fix that warning too.