Use a map to convert to C.{int,bool} from a Go bool

* This was inspired by gohorde doing the same thing.