Fixed some issues with mder encoding of any and length field.
Also tested some basic aarq