Allow edgesInX to return only edges of specified type.
Fix for slicing steps.