Small ActiveRecord v3.0.4rc1 Patch.

Some databases return integers for AVG functions. This patch will only cast Float/String to BigDecimal in the type_cast_calculated_value method.

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6365

- Cheers,
    Ken