Layers' order affects ZIndex and can be saved

* Modify tilelayer zindex to reorder layers
* Save position in array
* Use unshift instead of push to add new layer on top of array

Fixes #3721, #3727
Merge branch 'feature/reorder-layers'

* feature/reorder-layers:
  Layers' order affects ZIndex and can be saved