DRY out expectWarning/expectNoWarning
Fix #2: restore 1.8 boolHook behavior (with warnings). Close gh-2.
Followup d7f4d5f8: skip .attr(value) warning only for input|option elements