Fix getKeyName/getTypeName functions
Iterator function keys were in wrong order