Val parameter specialization has been extended to work with booleans (bools).