Bug 1011510 - Codegen.py: Add EndGuard to enum generation; r=bz