Float to Integer Fix for 'px' String Values in Navigator

Also fixes unit tests on Firefox (#332)