Increased subquery and related predicates support

Fixed bug for NSDate property
Fixed several bugs for NSData properties
Added support for subqueries
Added support for chained relation keys