When we create the Clang types for methods, we ignored the qualifiers. So `const` methods would become non-const. With this PR, we use the qualifiers from `*this` for the function type.
When we create the Clang types for methods, we ignored the qualifiers. So `const` methods would become non-const. With this PR, we use the qualifiers from `*this` for the function type.