fix sum for Rboolean sugar expressions
handle sum( bool sugar expression )
handle bool and Rboolean subsets