Moves setunit and setscalefactor to SimpleStateNode from Avalue. Adds

setparent to AValue class. Updates tests with new output