Correctly interpret resource IDs in command line and DBus calls
Resource IDs were often ignored when prefixed to an event ID, in options such as --triggerEvent.