Adding buffer output operations and test for them

Hey there,

I needed an easy way to get int64s back out into buffers, so added a few convenience methods to do so.  Hope that's ok.  Thanks for the great class, it's exactly what I needed!
would prefer to have this as two seperate lines (newline after `;`)