Add auto value support for value objects. This closes #3