Fix bool encoding in transforms