fix PR#3193 mutating new resource
fix PR#3193 mutating new resource

also converts ivar to accessors
note with comments other new_resource mutating to clean up

robmul/chef,mwrock/chef,nathwill/chef,nathwill/chef,zuazo-forks/chef,Kast0rTr0y/chef,Ppjet6/chef,strangelittlemonkey/chef,webframp/chef,tas50/chef-1,someara/chef,youngjl1/chef,aaron-lane/chef,youngjl1/chef,Tensibai/chef,aaron-lane/chef,tomdoherty/chef,docwhat/chef,jonlives/chef,oclaussen/chef,natewalck/chef,oclaussen/chef,robmul/chef,jkerry/chef,martinisoft/chef,jkerry/chef,jonlives/chef,jonlives/chef,mwrock/chef,Tensibai/chef,criteo-forks/chef,Ppjet6/chef,onlyhavecans/chef,evan2645/chef,someara/chef,Tensibai/chef,josb/chef,juliandunn/chef,MsysTechnologiesllc/chef,BackSlasher/chef,nvwls/chef,webframp/chef,strangelittlemonkey/chef,martinisoft/chef,aaron-lane/chef,onlyhavecans/chef,robmul/chef,jaymzh/chef,b002368/chef-repo,mikedodge04/chef,ChaosCloud/chef,josb/chef,mal/chef,docwhat/chef,criteo-forks/chef,Ppjet6/chef,3dinfluence/chef,smurawski/chef,ktpan/chef-play,Kast0rTr0y/chef,nvwls/chef,smurawski/chef,ranjib/chef,chef/chef,3dinfluence/chef,martinisoft/chef,brettcave/chef,MsysTechnologiesllc/chef,josb/chef,mal/chef,criteo-forks/chef,docwhat/chef,tbunnyman/chef,tomdoherty/chef,BackSlasher/chef,aaron-lane/chef,strangelittlemonkey/chef,jaymzh/chef,chef/chef,youngjl1/chef,BackSlasher/chef,3dinfluence/chef,nvwls/chef,mal/chef,juliandunn/chef,martinisoft/chef,someara/chef,nathwill/chef,sekrett/chef,evan2645/chef,tomdoherty/chef,higanworks/chef,youngjl1/chef,brettcave/chef,mikedodge04/chef,sanditiffin/chef,jkerry/chef,juliandunn/chef,docwhat/chef,MsysTechnologiesllc/chef,brettcave/chef,strangelittlemonkey/chef,ktpan/chef-play,ktpan/chef-play,Kast0rTr0y/chef,oclaussen/chef,zuazo-forks/chef,docwhat/chef,robmul/chef,gene1wood/chef,jaymzh/chef,ChaosCloud/chef,sanditiffin/chef,jonlives/chef,juliandunn/chef,ranjib/chef,ktpan/chef-play,zuazo-forks/chef,chef/chef,ChaosCloud/chef,nvwls/chef,someara/chef,onlyhavecans/chef,higanworks/chef,docwhat/chef,3dinfluence/chef,tbunnyman/chef,sanditiffin/chef,gene1wood/chef,natewalck/chef,webframp/chef,b002368/chef-repo,brettcave/chef,sekrett/chef,higanworks/chef,Ppjet6/chef,b002368/chef-repo,evan2645/chef,Kast0rTr0y/chef,ChaosCloud/chef,jaymzh/chef,strangelittlemonkey/chef,criteo-forks/chef,chef/chef,tbunnyman/chef,ranjib/chef,oclaussen/chef,tbunnyman/chef,josb/chef,ktpan/chef-play,gene1wood/chef,ChaosCloud/chef,mattray/chef,natewalck/chef,brettcave/chef,webframp/chef,natewalck/chef,tas50/chef-1,mwrock/chef,aaron-lane/chef,b002368/chef-repo,mattray/chef,josb/chef,gene1wood/chef,tbunnyman/chef,jkerry/chef,evan2645/chef,higanworks/chef,smurawski/chef,BackSlasher/chef,natewalck/chef,strangelittlemonkey/chef,zuazo-forks/chef,sanditiffin/chef,smurawski/chef,sekrett/chef,ktpan/chef-play,tbunnyman/chef,mattray/chef,youngjl1/chef,aaron-lane/chef,onlyhavecans/chef,evan2645/chef,jkerry/chef,evan2645/chef,webframp/chef,zuazo-forks/chef,mal/chef,Tensibai/chef,oclaussen/chef,BackSlasher/chef,Ppjet6/chef,brettcave/chef,mal/chef,nvwls/chef,ranjib/chef,mikedodge04/chef,MsysTechnologiesllc/chef,ranjib/chef,mal/chef,josb/chef,robmul/chef,nathwill/chef,zuazo-forks/chef,higanworks/chef,juliandunn/chef,onlyhavecans/chef,Kast0rTr0y/chef,jonlives/chef,b002368/chef-repo,tomdoherty/chef,mikedodge04/chef,jonlives/chef,criteo-forks/chef,sanditiffin/chef,ranjib/chef,sanditiffin/chef,b002368/chef-repo,3dinfluence/chef,someara/chef,oclaussen/chef,mwrock/chef,martinisoft/chef,criteo-forks/chef,smurawski/chef,tomdoherty/chef,mikedodge04/chef,sekrett/chef,Ppjet6/chef,ChaosCloud/chef,nathwill/chef,mattray/chef,tas50/chef-1,mattray/chef,jkerry/chef,Tensibai/chef,sekrett/chef,webframp/chef,nathwill/chef,robmul/chef,youngjl1/chef,Kast0rTr0y/chef,onlyhavecans/chef,mikedodge04/chef,smurawski/chef,someara/chef,BackSlasher/chef,natewalck/chef,3dinfluence/chef,sekrett/chef,tas50/chef-1,nvwls/chef