CollectionMetaToken: performance improvements.

Instead of array iterated through LINQ with getting underlying type each time
we're using a hash set.
TypeWriteableByPrimitiveWriter: performance improvements.

Using a hash set instead of LINQ on array gives us important improvement.