Test named alternation in `serialize`.

Closes #96.