It is great that Hacker News has caught up with this -- Philip has done a great job with the Python Tutor. Next step: user-definable layout for display of different data types.
There was a paper on that sort of thing: Korn & Appel, "Traversal-based visualization of data structures". (It's online but I can't get the link out of the search result easily.)