Variadic version of cartesianProduct.
Fix compile error.

Add unittest.
Disable unittest that eats too much memory.