add env TEST_OUTPUT_TYPE to allow control of type

This change allowes to re-use t/01 to create exercises for each supported
calculation type.
avoid power of 1 in exercises
avoid wrongly empty string return when number is 0
add some better doc for sumcat_terms function
distinguish between exact and nearby solution

(just in case computed real nums slightly differ)