Added keepIndexed - similar to keep
Tests for keepIndexed