filterStatesOfType

Filters a list of StateAndRef objects according to the type of the states