Fix implicit coercion of aggregates