fix #5589 (undef array in type show bug)
Merge pull request #5594 from JuliaLang/mn/5589

fix #5589