version that prints Array for arrays.