Fixing bug where not all fields were copied over by FooBuffer(foo) constructor