I see your point with the DIY-friendly side of Arduino, and probably can agree. You are also right not to make this topic a discussion about pros and cons of different IDEs, so I won't. I just couldn't have helped myself to make that point. :)
I'll work on your code to move more work on precompiler and clean up the lookups when I'll find some spare time.