Move "serialize" function from example.lua to gumbo/serialize.lua