AGS.Types.Scripts comptibility changes

Fixed the compatibility problem with the enumerator while still supporting a new enumerator