use a specialized type for allocation slot indices
general cleanup. remove valgrind markup, log_hash_failures and C headers