Recursive storage with type recognition.