Make byte[][] serialise correctly

Sorry not very goot at this whole pull request thing; let me know if you want me to rebase.