Alas, I have no new ideas. The "it worked just that one time" issue is almost certainly related to doing/not doing a full clean and rebuild. It's the only possible cause (once we rule out fairies and gremlins, etc. :-)
I do believe that you are down to starting a new project and adding old-project code piece-by-piece until you see the problem behavior.
-- Dan