Use some value classes
Merge pull request #340 from twitter/valueclasses

Use some value classes