Improve exception for illegal types for Json

It's nice to know the type in case the illegal object has some toString method that doesn't indicate what the type is :)