cleared up more details of C++ reference type. added test for it