Tiny cleanups

scan call is easier to understand in RecurrentLayerWithSearch
Jan, can you please change this so that I could merge this pull request?