Numstat / fix interface

Further number/coeffs interface fixes (part2)

fix: correct header includes 
chg: minor cleanup
note: dangerous handing of BIGINTs was marked
here i think that i fixed a bug. the note here is for Hans to verify me.