Restrict debugging by packet types

If the debug param is an array check that the packet type is in it