Implement __getitem__ and __setitem__ in ColorArray

Close #388