Validate DynamicMessage values before set (#272)