Added Dictionary serialization to buffer code.