Fix loading of WAD sections; add several tests for this