Miscellaneous functions related to arrays, vectors and enumerations.