Track options/non-options border.

Instead of iterating the routes array to find where routes with options
end and routes without options begin, just keep track of the index
whenever a route with options is added.