Fixed type errors in statementData; began fixing scriptDataGatherer