firmware: coreboot: Check size of table entry and use flex-array