Fixed the derivation of input types when traversing through a fonout operation.