Infinitary varieties of structures closed under the formation of complex structures