Moduli anomalies and local terms in the operator product expansion