Convert `device` to `platformName` when turning caps into arguments.

Altered `Device.setArgFromCap` to turn `device` into `platformName`.
Updated `IOS` device to use platformName instead of device.
Added test for `Device.setArgFromCap`.

I think this is the right place for these;  rather then converting in IOS we should do it on the prototype object.

Closes #2149