add == and << operators for valueref