LPS-38522 global scope items as missing references

Hey Mike,

It's quite straightforward. I've introduced some helper methods to help handle the referenced items plus the global scope stuff. I've applied it where it was possible, but for some entities either the global scope or the generalized methods cannot be applied due to some special logic.

Also fixed a bug in one of the SMDHs.

Thanks,

Máté