Added values() function and improved keyval() to also return indexed arrays