Add support for unexported structs. Fixes #24.