Support object types as values.

Fixes #7.