Additional fixes in order of operations for N routing and fixes to dynamic phenology code