Fix a bug with llDetachFromAvatar and dropping the initial attach event.
Fix up line and character positions for ascript errors.