fixed several memory leaks under newer versions of Delphi
(linked to enhanced RTTI or compiler issues, like unproper method inlining or object type regression)