when cloning a layer that is loading, make sure numLoadingTiles is reset to 0 on the clone
Merge pull request #840 from bartvde/clone

when cloning a layer that is loading, make sure numLoadingTiles is reset...