I haven't decided myself how I feel about this. I cannot say it never happens, but on the other hand I'll admit it is probably not really code, it more like me conceptualizing and forgetting I am asleep. The more bizarre episodes occur I think in late deep sleep and I wake up from them but they are irrational, so not really true code. Other times I have gotten straight up, turned on the nearby computer and felt pretty happy about it, with little difference between dream and reality.
On the other hand I wonder if there isn't some nice prescription medication someone might be aware of that could just eliminate this, as I am not sure if it is really a productive experience.