Generalizing learning with Optimal Transport: Invariances and generative models across incomparable spaces