Made JSON be able to properly marshal rails flash objects.