Fixed new bugs in Leb128.

Also, split tests into 6 subtests. Hope there will be no timeout this time.