each element in tree should get unique number even if reuse of existing complex type