* Use to_text on value to activate _fail_with_undefined_error. Fixes #12186 * Add comment explaining in depth what to_text gives us