Value: code cleanup.

Most code should not know about boolean value's internals.