Updating reference count of a chunks in MM / related to version handler
further work and tests on reference count
Merge branch 'reference_counts' into next