rhogen: fix hash_array and array_array cases