add polyfill for deep compare, avoid setting material if compare says already the same, add physics to blocks in paintertool