fix ignore_types to work with FlashHash in rails 4.1
Fixes #5192