I thought his marriage was unrelated to whatever he did with Queen Elizabeth (). I wonder what would compel him to marry at all. I think these few lines will be debated for years to come, especially among the 'River Song married the Doctor at some point since she knows his name' crowd.
I suppose it is hard to tell, as he's rambling. It sounds like Good Queen Bess is connected to his 'got married' comment, although that could be River.
Also, keep in mind, the Doctor might be bullshitting. He's been known to do that.