To that end, I decided that I wasn't even going to bother preparing for the interview, and I'd just wing it and see what happened (this was likely a defense mechanism - if I don't bother to even prepare, then it doesn't reflect on me if I do poorly / don't get the job). Feeling how I do about the interview, if I don't get the offer then it doesn't hurt my ego since I can be reasonably sure they passed on me for the exact reasons you described.
That said, I did try to do some preemptive damage control. I asked about opportunities for advancement in the company, expressed an interest in the certifications they mentioned, etc. In the HR interview, when asked whether I could be happy in a testing role, coming from development, I explained that I had enjoyed the bits of testing experience I had as part of my last job, that I wouldn't mind a break from development at the very least, and that any development itches I had could be scratched by my side project. Incidentally, this also opened the topic of intellectual property and all that, and she said that there were established procedures for that, and that it wouldn't be an issue.
So whatever happens, I'm ok with it.
Employment is like dating - you're more desirable if you've already got a job. The number of companies willing to speak with you dramatically increases - and why wouldn't you trade up if given the opportunity, especially if this current job is "below" your standards to begin with?
If they sensed that, it might hurt your chances of getting an offer. (I don't mean to be a downer, and I really hope you get it and it's better than you expect.)
Oddly enough sometimes an employee kicking ass during a technical interview and coming off as a "great deal" is a bad thing. They may realize you'll likely leave in 6 months and they'd rather invest in someone who will need to stick around longer.