extracted ScalarConstraint/BooleanConstraint from Tree2DConstraints