encode decode array helper
improve test coverage on simulation nodes for conformance testing
improve redirectToFile