merge of r49785 (from branches/ggreif/use-diet): pass V to dyn_cast by const referenc...