UrfDevice: fix return values for get_device_type