Handle decoding into Go arrays

Fixes #20.