Store strings count insted of strings lenght.

It makes assert in "getStringLiteral" a proper boundary check.
Adding new types to scripts and storing them after strings will be a little harder.