Extract entities of the supplied type(s).
id=extract(group,type)
id=group.extract([group.type.gNode group.type.gElement])
EXTRACT will extract the entities of the specified types. TYPE is a numeric vector. EXTRACT only works on scalar group objects.