Add byte wrapper helpers

This is pretty much the same as #9 , except that I've implemented everything as a macro, and then implemented it across all the byte wrappers in the codebase.

cc @dpc - thanks for your work on this!