Changed unpacking convention to allow for arrays of submessages