Node: add some type controls. fix error strings