ENH: Change var_quadratic_sum so that it could handle scalar inputs.
TESTS: Added some tests for quadsum, but still need to test m_quadratic_sum.