fix packet marshalling
- tested with IGMPv3 packets
Merge pull request #4 from adferguson/marshalling_fix

fix packet marshalling

Tests on quickcheck branch passing with this branch.