Added resolution support for oneOf

Added support for the oneOf property within the dependency loop. Updated tests and inline documentation to reflect the change.
Cleaned up small syntax issues. Removed cached variable from resolveDataSource since it was no longer in use.
Added test to force error in reference during dependency loop.