Add compatibility with Simple Form `3.1.`.
Fix compatibility with Simple Form `3.0`.