Value type support

Fixes #84.
WTF is wrong with you, Resharper?
Merge pull request #86 from paulcbetts/lets-have-some-value-types

Lets have some value types