fixed problem with printing arrays in error messages