fix for printing arrays with dimensions of 0