Fixed a very strange bug with AOT compilation and the root '/' route. New middleware is really just a workaround, but it gets the job done.