angular/angular.js#1199
number parsing performance improvement and addition of further unit test cases