The arrow of time and quantum physics: difficulties and resolutions