Rewrote the bag-of-values description of arrays

Closes #65