A new study could help us better understand the world of dreams