Implemented ToJson extension method for IQueryable, to get JSON from query.
WriteOnly properties no longer serialized. Also refactored a bit JSON type cache stuff, but disabled by default for now.