Changed GetAttributes to construct type using the generic parameter (not the attribute data).