Fixes type deduction issues with qmllint/qmlls.
Only monitors and workspaces are fully tracked for now.