Fix two bugs in BooleanArgumentFlag and StaticAccess rules.