Made max-size of serialization buffers configurable.

I hit the max size and got an error. I think unlimited as the default and configurable for advanced users would make sense.