New testcase for typeconstraint based on AnyObject

When you create class where you specify a generic type constraint referring to AnyObject, the compiler crashes.