[model] max_next_visit -> last_next_visit, same for
previous_max_next_visit.
[model] If incoming transfer also started arv during this period, goes
to incoming transfer and not in new arv patient anymore.
[model] Some computing mistakes corrected.
Merge remote-tracking branch 'origin/model'