Add generic list packet and derivatives

This adds a generic variable-length list packet type, and derives
IntListPacket, UintListPacket, FloatPacket and DblPacket from it.
Fix graphclient to use generic list