Freelist statistics refactoring - most of the functions are now inline
Lots of refactoring, no functional changes