Added test for querying of bool property on client side resource.
Added mapping for HasValue and Value property of nullables.
Fixed ToQueryResult for client side resources.