Ticket #41: unroll write_varint()

PyPy 2.4.0 before:
    1000000 loops, best of 3: 2.18 usec per loop

PyPy 2.4.0 after:
    1000000 loops, best of 3: 0.893 usec per loop