prevent redefinition of ar method #write_attribute

* this prevents a 'stack level too deep' exception
  when using stately with active record
* all tests pass normally
* paired w/ @yokolet
add convenience method #state.name?

* tests to see if object is in a particular state
* for example, if state was :processing, method #processing #=> true
* specs added
* paired with @yokolet