Fix using nested aliases in static routing.

Using nested aliases is broken. This fixes system_routes_edit.php