Improve warning message
JValue can be trivially converted to JValue by identity function
Add a test