proxy: use slice instead of map for handlers to preserve lookup order