Improve the toString for collections
Fix type in toString of imitations