Fixes #1873. Types should be enclosed in angular brackets to avoid ambiquity and to correctly resolve associated functions.