fixed new class test
made arithemtic error message more precise
fixed return node children
making arrays needs the right type, needs valid length