Ok I just looked up at the page here.
About CoM references, this was rectified in FM+, and Sora was the one to ask Riku about Namine. Once Roxas and Namine returned to Sora and Kairi, something must've happened, because right before the fight against Xemnas's Knight Mode, Sora tells Riku he never got to thank Namine.
In one of the Scenario Mysteries interviews, Nomura was asked if this means that Sora remembers Namine, to which Nomura replied that if he does, it's because Namine's existence was made possible by Sora, and once she and Roxas returned to Kairi and Sora, things were connected again.