Add missing 'undefined' in type cast
Set default 'tracking' property to false
Merge pull request #805 from fredj/cleanup

ol.Geolocation and ol.DeviceOrientation cleanup