KT-5182 Data flow info is lost for 'when' branches
  #KT-5158 Fixed
  #KT-4332 Fixed