Fixed so that the cost is minimized when combining three plans with cartesian products.
Unignored a bunch of compiler tests
Merge pull request #3215 from pontusmelke/fix-cartesian-products

[2.2] Fixed so that the cost is minimized when combining three plans