Fixed type tests for device: some of the browsers with native implementations of device need to be cast to string to pass typeof tests.
Fixed type tests for device: some of the browsers with native implementations of device need to be cast to string to pass typeof tests.

corimf/cordova-mobile-spec,apache/cordova-mobile-spec,corimf/cordova-mobile-spec,apache/cordova-mobile-spec,corimf/cordova-mobile-spec,corimf/cordova-mobile-spec,ollie314/cordova-mobile-spec,apache/cordova-mobile-spec,polyvi/xface-mobile-spec,lorinbeer/cordova-mobile-spec,polyvi/xface-mobile-spec,ollie314/cordova-mobile-spec,macdonst/callback-test,ollie314/cordova-mobile-spec,corimf/cordova-mobile-spec,ollie314/cordova-mobile-spec,ollie314/cordova-mobile-spec,apache/cordova-mobile-spec,apache/cordova-mobile-spec,polyvi/xface-mobile-spec