JasonLeyba: When an object is returned from a script, convert any function properties to strings instead of throwing an error. This fixes the SafariDriver for a test added in r17639.
JasonLeyba: When an object is returned from a script, convert any function properties to strings instead of throwing an error. This fixes the SafariDriver for a test added in r17639.

git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@17886 07704840-8298-11de-bf8c-fd130f914ac9

jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2