Fixed DebugMem compile error in Visual Studio

- Encoder: Changed fprintfElement to pass the list by reference
- Fixed memory leak in PostProcessTest
- Added getScriptController to Test