Changing session serializer to store complex objects