Sniffer optimizations 2

ping @ElPeque

Sniffer optimizations targetting agents#967

* Bit shuffling in NewPacket2(), slightly reorganizing code to gain a few cycles.
* Avoid struct copy and C calls in unwrapHeaders().