rg_materials refactoring + Group substitution on node creation