Add support for sub-schema types

I believe this was all that had to be done to support sub schemas which automatically flatten into the existing ```.``` and ```.$.``` notation.