Fixed FunctionDecl getScore and interface compatibility detection