Fix cleaning up shared scheduler reset
Don't lose memory on Metadata
Move template to implementation file
Clean up tempdata of RowHelper
Fix ColumnMetadata cleanup