merge-parser: Check for struct size before unmarshalling