[DF-2951][DF-2955][DF-2956][DF-2958][DF-2962][DF-2964] cloning new materials in a correct way fixes a lot of issues. Also a more sane reference counting implemented in order to avoid leaks.
Merge branch 'origin/feature-integration-new-materials'