Improvements to treeSelectInput().

* Compare values as strings. Don't select multiple options
* Don't overwrite variables from $array.
* Sanitize all HTML attributes.

git-svn-id: http://textpattern.googlecode.com/svn/development/4.x@5383 2fea6a4d-a838-0410-917b-93a53c48e9d2