added extractDependencies
fix extractDependencies for non-string
CacheManager watches dependent relations for a dataSource
fixed bug in QueryWriter, tests now pass