Make bool conversion robust to non-normalized bools
Get rid of C helpers
Remove unnecessary casts to interface{}
Replace C macro by Go code