Do you take any meds after being glutened that you don't usually take? I only ask because I know anti-nausea meds give me nightmares and restless sleep and even some wakeful delirium.
If not, I would certainly blame the nightmares on gluten. I get insomnia despite being exhausted after a gluten incident. And it looks like many others have gluten-induced...