Make more use of the <> operator to infer generic types.