extend unaligned words for both head rules and hdr rules
add length limit for rule extention
fix bug in dumping rule (variable is missing)