Typed values

Builds on PR #35.