Added isFirst and isLast variables to the context of eachSection and eachRoot helpers