show path info in invalid-schema exception

When receiving the information that a schema is not an object, it's nice to see where exactly the problem is.