Avoid uneccassary reflection

There is no need to get all the types multiple types for each assembly
Merge pull request #393 from Xharze/avoidSomeReflection

Avoid uneccassary reflection