inifscn_nstdsums: make functions handling Li/G transformations reentrant.