Adding initialstates function to RNNs (#2541)
* added initialstates
* added initialstates to recurrent layers, added docstrings
* fixed small errors
* streamlined implementation, added tests
* Update docs/src/reference/models/layers.md
---------
Co-authored-by: Carlo Lucibello <carlo.lucibello@gmail.com>