[layertree] Preserve the order of layers when adding several layers at once