fix #7827
legend updates:
- when enabling explicit drawing order, intially take legend order
- when loading projects with explicit drawing order enabled,
  verify that the order is actually fully set and take legend
  order otherwise (fixes #7623)
- store/restore active layer
german translation update