Merged more contributions from +Hallvard Vassbotn and added some fixes on top of those

HVassbotn: Fix #9 and optimise speed comparisons
- Fixes EAssertionFailed with message 'Instance.ClassType TMyDescendent2 <> TMyClass TMyClass
- IFOPT C for code needed by Asserts
- Promoted fix to TestDmt project
- Tried to fix the speed comparisons by repeating tests twice and disabling AddState
- fixed memory leaks
- typo fix MPlusTests -> TMPlusTests
- removed dead code

Continuation of
Shared publiclyView activity