Added support for ref parameters; removed smartStringof