Added the support of the OfType linq method

Added the support of the OfType linq method to support automatically filtering on subdocument type
All advices and/or remarks are welcome :)