Always use US locale when formatting numeric literals

The test added is slightly more than strictly necessary, ensuring all types have a smoke test, but also uncovered output bugs with the interval types as well. Fix those too.