Add helper method to retrieve the last item from an array (the opposite to array_first() in a sense).

Signed-off-by: Ben Corlett <bencorlett@me.com>
Capturing the last route instead of the first route. This allows overriding of routes to occur.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Merge branch 'refs/heads/master' into bugfix/routes-hierarchy
Merge pull request #2850 from bencorlett/bugfix/routes-hierarchy

Reintroducing Lost Routes Overriding (#2848)