copy should be improved
crashes both GCC 4.8 & 4.9!
better use of __atomic_store_n
better editval_copy...