Add better support for DefineEditText/TextFields

My hand-compiled tests don't provide many fields to DefineEditText, so make missing values more acceptable.

Make TextField appendText/replaceRange work.