fix regression with jsifying code - all dimensions would be rounded. Fixes #2057