Uses typed constants for the DeviceIdentifierType enum (fixes #1)