Allows for state_when_nil option for attributes