Correctly scopes state_when_nil option to attribute options