Bug 821361 - Optimize type information in closures that only run once, r=luke.