Add bytebuf write support avoiding copying

We could also just add a put that takes a Bin or a Value, but then the responsibility for getting it right lies with the user.