Added the overwriteNodeStatesInCurrentNodeVisit() function so that we have the option of updating the node states array instead of appending to it.