Several fixes to AOL and tests

Does `msync`/`munmap` not work with values of 0, or was this tested before or after 77993aac2af4b111868fe2c5f6acc553353b9e0c?