Fixes #1692

Make it possible to configure a default Serializer to use.