Better fix for #5754

Split show_delim_array in two, one version specialized for
AbstractArrays which uses linear indexing and checks for undefs,
and a generic one which uses start/next/done.

Also properly implement isassigned for BitArrays.
Fix #5758
fix bug in rehashing typeToTypeId table. ref #5688