use safe_repr to print arg vals in trace

This fixes a problem in which extremely long (and slow) stack traces would be produced when
function parameters are large numpy arrays.

Warning: I have not fully read and understood the format_stack.py module.  But this fix seems to work.