Fix filtered agg 0.7

PR #889 - fix for 0.7 
should this be assignablefrom or instanceof? Is there ever a case where extended classes would need to return equal?