Fixed missing parentheses

A couple of missing parentheses messed up the logic of a bit shift, and
a packet created using the HipsterPacket class was not correctly
decoded if extracted again from the Datagram in which it was
encapsulated.