elide long containers in pretty

limits sequence length to 1k items

avoids performance issues with pretty-printing large containers

closes #5347