Adding set(boolean) methods + fix w in set(int) method

Proposed changes for issue processing/processing#1991
Also fixes issue processing/processing#1994