Handling ActionDispatch::Request::Session::Options objects

by converting to hash before merging in extra options.