map: fix get_int_list()

it didn't accept $max elements