Fix cases where applications try to update a value using a pointer into the same buffer returned by get_value.

refs #1393