Fix MergeFunctionDecl implicit CC for static methods.

Patch by Alexander Zinenko!