Add multi-D array printing for testing