Adds handling for boolean to numerical value mapping.