Fixing numerous issues in scripted index results bundle