Added removal of empty signatures to DDG.cleanup to prevent the memoTable from
growing unbounded.