Make arrays of keys and values from a hash.