If zpos is mutable, set it as needed depending on the layer configuration. Properly handle atomic test commit failures (some zpos combinations might be not supported by the driver).
Preliminary task: find a driver which exposes a mutable zpos.
Comes after #4.