Fix panic when decoding embedded structs

Signed-off-by: Tibor Vass <teabee89@gmail.com>