Allow text writer precision to be configured

This is super-dumb right now, but it allows basic precision configuration. This is untested as the text writer test is disabled ATM.