Improved context gathering. Moved GatherContextInfoFunction to an inner class of FONode to reduce visibilities.