Formula Improvements

Minor optimization to complex formulas (Count, Sum etc. from connected values) to optimize speed and efficiency.