fix varint test broken in browser
bn -> BN canonical capitalization
fromX is actually static

...should add an instance method in the future
varint -> vi canonical spelling