Makes the queue plugin use serialize.

fixes #611