Work with the new color library.
Allow multidimensional arrays. (fixes #37)