Modified DhcpBasicPacket.EncodePacket. Extended options can be reordered

backport a37edb1 from master