* Fixed stupid instance bugs.
 * Enhanced z calculation. The Layer z offset depends now on the Layer count and range is used to clamp the RenderItem screen z. Additional the min and max screen z is now calculated instead of checking each RenderItem. refs #822