Implement use of __refvalue as an lvalue. Fixes #10034