Code review for marshaling of nested lattices.

See #295. Improve test case, move some state to be instance variables rather
than local variables, and update the release notes.