read flash types from redirect options in way compatible with Rails 3.2