Add Array#{keys, values, entries}

Rebased the previous pull request.