Added support for function imports and relops on When branches.