Controller error handling: correctly handle arrays and other non-printable stuff.