Fix logic that would allow index_type to not get set.
Fix logic in hashDbPathNat().