changed schema_example() to do dereference() at first

The current schema_example() fails with `{ "$refs": "/..." }` even if the dereferenced value has example or properties. This patch is for fix this problem.