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>
array_first functionality in Collection
Merge branch 'refs/heads/master' into bugfix/routes-hierarchy