Fixing bootstrap_flash for Rails 4.1.

The 'type' in flash messages is not a Symbol, it needs to be casted.