Dreams are widely considered to be a reflex; one that allows the mind to subconciously work through the issues that are of most concern to the subject.
I'm also not well-learned on the subject, but rainbows are refracted light and are unable to break the sound barrier. Don't worry.