Updated type detection to handle ReflectionTypeLoadException failures.
Closes #29