Common: LambdaUtils: Add a more general filter by type method.
* The current filterByType methods has fairly strict expectations towards inheritance which restricts the use of the method. * Add a more generic filterType method that has less restrictions w.r.t. the generics. * Rename the existing method to filterTypeSafe. refs 3203