memory related bugfix in CodeHandler::addToEvaluationQueue()