Fix UIAElement.setValueByType

iOS tests sometimes fail with because the typing is too fast and keys get out of sync, particularly when shifted. The solution is to send each key individually, rather than through `sendKeysToActiveElement`. Also, on error, we should retry the key once.