better template conversion: drop the AnyRef extension clause, try to guess hasStats