Sparse identification of nonlinear dynamics and Koopman operators with Shallow Recurrent Decoder Networks