Support for embedded fields when decoding struct from array in stream.

Fixes #20 .