fixes for array conversion in hashtable function