Added codegen to generate array offset calculation.