Suggestion: more helpful wrong-type errors

Currently the exception just states that the value was the wrong type, for example:

org.json.JSONException: JSONObject["layers"] is not a JSONArray.

It would be helpful if the exception told us what the type actually was as well. Was it null? JSONObject? something else?