Added support for passing value types by reference to methods