Special case bool when for Value IO

This is the fix for issue #185