Improve Math.pow accuracy for small integer powers (fix #374)