Fix Interface.__getitem__, add src_idx, dest_idx methods to Pattern.