Bug 5845: can not transform ba to bi, when keys contain boolean type