fixed assignexpr to return R-type