Don't serialize tokens with no values.

Fixes #3.