feat: persist union types
After discussing with @milho001, we decided to move the union type property into the query builder settings. Here the property will be automatically persisted. Arguments against were that in principle, it's not really a setting of the query builder, but of the query itself. However, query builder settings currently also contains settings that pertain to the query, and its not worth the effort of updating all backends to accommodate this simple property.