Resolving inner definitions on $ref's
Test case for inner definitions
Improve resolution of inline dereferencing

* inline dereferencing is not only for definitions
* supports deep level inline dereferencing
added support for resolution of inline dereferencing with ~ or /
Fixed array syntax to support PHP 5.3
Merge pull request #1 from co3k/fix-93

Fix 93