Seeing differences at daylight or obscurity while in the womb does not seem impossible. Anybody that has closed the fist over a strong flashlight knows that the flesh is not totally opaque.
Is this dreaming? Maybe, maybe not. Other explanations are possible.
"Mammals dream about the world they are about to experience before they are born"
Wow, those are some evocative feels in those words.
I immediately thought about Google's "DeepDream" and how reversed back propagation gives us a projection of the network. Growing brains similarly fire before they're trained on real world perceptual inputs. Maybe these have shapes that evolved to be world-like and give babies an advantage in the fitness landscape.
My next thought: what if what we're collectively doing now -- all of our neural connectomes growing, dying, forming new connections, evolving understandings. Society, basically -- is the same shape of an AGI before birth? Maybe alien worlds tend towards this path too. A bad analogy, sure, but maybe it's the shape of the universe's consciousness being bootstrapped, before it awakens. Not getting into metaphysical garbage -- just thinking about what's to come.
I've heard the saying that fetuses aren't conscious, but I've never heard anyone, however fringe, say fetuses aren't alive.
I've never heard someone say farm animals can't feel pain.