Adding support to pass a serializer to elastica