DuettoBackend: Optimize access to simple values in unions
DuettoBackend: Remove some legacy code