generalized acc_fin::list_filter proc to handle different types, applied to multiple places in pretti proc