Fix type of Tilemap.foreach callback