I don't really follow much of the above very well, but suffice it to say, I personally would have no problem with the idea that I can agree in advance while sentient to give consent to my spouse to have sex with me while demented assuming medical science supports the idea that it will not be doing affirmative harm to me while in the demented state. It is similar to the notion really that I can execute a living will, stating I want to be offed in I descend into a vegetative state (to the extent otherwise legally permissible).
Maybe I would too, but two gay men's opinions does not make it right.
I'll try to be clearer. The first big problem I have is the comparison with a living will. Then you can argue that, because we allow that kind of legal solution for ending one's life, we can allow that solution for everything with lower stakes than ending one's life. But I disagree, because signing away my life and signing away my ability to consent involve two different rights.
Signing away my life affirms a right to the body (not a lawyer, but this should correspond to something legal). Signing away my ability to consent does not affirm any right to the body. Instead, it involves a right of surrendering my body to someone who wants to use me. I doubt many people believe this right exists, and would be outraged if someone used it to justify assault or rape.
Of course you can oppose that interpretation and say that oversight exists, through medical instruments that can test whether the incompetent person is in pain. But you cannot say the only reason we have to refuse consent is when we are in pain. We can refuse consent when we expect that having sex will lead to negative consequences. I believe we cannot come to agreement about how these expectations ought to be measured, so this oversight is ineffective.