fixed apollo to work with 1-based arrays, fixed type of array entry values