few change in Field
adding test for Headerlength codec and fix issues for this codec