when I first went gluten free, I had insomnia bad for about a week...and I got the jimmy legs (RLS)....it stopped about about 2-3 nights.
Oh my gosh! RLS? Wow! I had that too, for about a month, then it went away. Talk about a freaky feeling! Kicked my sleeping cat off the bed a couple of times. Yikes! I had been gluten free (or so I thought) for about 18 months when this started happening - I have since gotten much stricter about trace gluten in items such as makeup, etc. Much better now!