Miscelaneous improvements towards incus backend

While working on an incus backend, I have made the following improvements, which are valid on their own.

Merge request reports

Loading