[backend] support imports in aggregates