A few utilities for working with arrays.
