Eagerly reject invalid values to ClassName.fromClass.

Refs #79.
Why not use the expected annotation value here?

`@Test(expected=IllegalArgumentException.class)`