Fix a few spec compliance issues with Number.toExponential/Precision

Fixes an autotest in qjsengine as well.

Change-Id: I6f30d360d4f43ec50a11bed669ff84d84db59589
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>