In the end, Rafe does end up getting married (to a woman that he had consistently and vociferously refused to marry multiple times through many chapters earlier in the book). And once he is married, he is completely safe from any suspicion of being homosexual. At all. Ever. And so he can safely keep Ivo in his house and in his bed and they can live happily ever after.