implementing array#dump