Define __repr__ for docs and anns

This defines a sensible default __repr__ with quick escapes for infinite nesting and long lists. If nowhere else, this will come in handy with automagic `dr shell` sessions. It is tested, but not thoroughly.