Implemented array.first() and last().