Add custom type equality to type library.