Constraints on finite-range baryonic and leptonic forces from stellar evolution