Value variables use version deltas as same type that the value variable holds.
Code generator no longer emits delta type for atomicvaluevariables (see previous commit).
Automatically checks whether to log update.
Removed dead code: no longer use copy.