bug fixes for C++ target
 - string manipulation in ExceptionOps
 - fix max/min for non-floating types
 - enable transfer function for variables