Add keyvalue() to ArrayLib to copy array keys to values

Method is essentially the opposite of `ArrayLib::valuekey()`