Fix Attribute event constructor resolver

Previously, any constructors accepting Class values would fail.
Merge pull request #3 from eueln/getnewevent-fix

Fix Attribute event constructor resolver