Fix some issues with printing arrays and test our output functions