Gets the position of item in this as index.
item
a ToolItemGroup
a ToolItem
the index of item in this or -1 if item is no child of this