Fixed a better typedef for script references.