Add more helpers to gen.go.