Tiny cleanups

scan call is easier to understand in RecurrentLayerWithSearch
I think that we do not need inner brackets here, they make me feel me like they are internal tuple of a pattern for pattern matching.