BUG: hashtable memory error causes test_factorize_nan crash