You may be experiencing the "Tetris Effect". We're all familiar with this: any activity you do extensively even for a short period of time tends to come to us in our sleep. Work, hobbies, video games etc. have all occurred in my sleep in great detail. It wouldn't surprise me if the same can happen ...