Check if bool in Input::has.
Fix conflicts, merge 4.0 branch.