Fixed: some methods returned unexpected results when used with booleans.