In theory, this should not work with the options you listed because those entities can't distribute dividends. In practice, it may work anyway because their tax authorities either don't care or are incompetent/don't have the resources to check everything.