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.