Adding support to truncate printouts of locals in traceback. 

Two new flags were defined in similar spirit to existing flag. truncate methods and length checks added to error and console writer objects.