I am pretty positive it's not Little Nemo.
All I can remember is a kid riding his bed in some sort of flood, and some other random weird stuff. I think there was a little creature that was the bad guy, someone got frozen in ice or maybe glass? And there was also a rainbowish tunnel that they traveled through?