Machines for assembling a multiplicity of different parts to compose units, with or without preceding or subsequent working of such parts