Add tests for very long string and fix an operator precendence issue in sizeFromCtrlByte