Add option to provide a number formatter.

Add number formatting without changing the tiny api.