Generate a warning instead of a shard crash if the number is bigger then the desired type in a pkt.
Added weight limit check for statmsg pkt.