[bindings] Be explicit when calling trait methods in generated code