ldb: fix the canonicalisation of booleans