fixed issue #30
minor perf optimisation when registering open generics

doing single dictionary lookup instead of two