Massive VLQ speedup

This has not been thoroughly tested, but the unit tests pass.