Reduce string allocations in test_numtypes