added cases were the resource properties were ids (longlong) and not full objects. Both cases may occur and this way the programmer needs not to know what is expected