Fix filtered agg 0.7

PR #889 - fix for 0.7 
any way we can avoid the duplicate code for missing dimensions between factorizeBuffered and factorize?