Support non-struct getter/setter documents.

Fixes #17.