Added support for bool as dict key.