Store messages in arrays of envelopes.

See #120.