Set NameError#name

`NameError` exception has `name` attribute (at least from [1.8.6](http://ruby-doc.org/core-1.8.6/NameError.html)). Having the class name in exception class make easy to find class name without parsing error message. e.g. https://github.com/thoughtbot/shoulda-matchers/pull/411