writer: Normalize 'cls' value to 'memory' for in-memory instantiation
Keep the old key for backward compatibility.