Modify unmarshalling of sequences

Signed-off-by: Baptiste Millou <baptiste@smoothie-creative.com>