correct DataType printing and improve printing of empty arrays