Better parsing error checking.

 * Includes $pkt->_cklen($data, $len) to check length and set an error
 * Includes _cklen_d($data, $len) to check length and die with an exception