structuremap/structuremap — pull request #34 by tkellogg (2012-04-09 23:05:19+00:00)
Title: Fix open generic factory methods

This fixes a bug that I ran into where factory methods (for creating instances) didn't
work when the type was an open generic. The problem was simply that
`typeof(Bag<>) != typeof(Bag)` and so the correct factory method wasn't being
used.

I added a specialized TypeDictionary that handles type keys better. If a key is set as
an open generic, asking for a closed generic version of that type will return the same
result as if you asked for the original key.