Fixed BLE problems on iOS (issue #32)

Fixed bug on iOS in stopScan that caused an unhandled exception and fixed a problem causing CoreBluetooth APImisuse warning (see issue #32).