However, we should probably reconsider where we always want to return whole objects (be it PNDs, SBIs, etc.), as in some cases simply an ID might be enough.
There was a case where SBI in copiedDevice could be nil, therefore calling ID of d.SBI() caused a segmentation fault. For example in the api Test_GetDevice test. This is also handled now.