-Ylog:X now only log phase X, use -Ylog:X+ to also log phase X+1

This supersedes #273.
Review by @odersky .