Move #first and #last helpers to class scope.

Current spec status: 405 examples, 0 failures in 1.59 seconds.