Bug 873684 - Improve error reporting when a value can't be converted to the expected type. r=bz

--HG--
extra : rebase_source : 3385999de823c9df659103239e62df8ffca5f15a