Authorities: Man sleeping in dumpster ends up in trash truck