Core: fixed hash to actually try max_size. Previously, maximum size of a hash table built was (max_size - 1).