Setting an explicit z-index interacts badly with tile layers which have an opacity less than 1, and therefore create a stacking context. Fixes #1790.