Little functions for debugging with arrays