Handle decoding into Go arrays

Fixes #20.
Error handling for embedded non-struct types

Fixes #17.
Merge branch 'issue-17'