Split transaction scripts when getting trustedInputs, if they are too long.