Remove nested functions (alas).

This is considerably more nasty, but sadly nested-functions is a gcc
extension. Instead, we declare some stupidly-named static functions in
another file.

Modified makefile to build new stats_isize files.