two bugfixes, in internals.py and zgf_reweight;
the former is probably due to differences between numpy 1.6 and 1.8