Allows setting a serializer in an initializer configuration.

This adds support for different serializers, such as [Oj](https://github.com/ohler55/oj) or even `Marshal`.