I knew about the laps not getting saved if I wasn't in the server, but it really does suck that they get removed if they have a 1x/BF/Corner Cut. I did get this working by simply keeping a float and adding all of the laps together... shame.
I wonder if I can bug iRacing enough to expose the laps even if they are invalid, with a special format, like joker laps.
Thanks for the info Nick. It's been a great challenge to learn all of the ATVO stuff, but I'm practically done with my first fully featured overlay.