Switch from arrays to lists (following PGOCaml changes)