Don't infer class template keys when inferring method template keys.
Fixes issue 1058.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=53874505