orm: Fix handling of bool and float params