Bug fixes for the current freelist implementation (still WIP)