Added the support of the OfType linq method to support automaticaly filtering on subdocument type