Tests for returning references.  Fix for returning rv refs.

svn path=/sandbox/; revision=83325