Split out copy functionality and add toBytes()
0.1.2