octascript: independent array codegen (will allow for array comprehensions later on)