Fix some type cast issues with product ratings. Some of these only show up on postgresql.
Fix some type cast issues with product ratings. Some of these only show up on postgresql.

grengojbo/satchmo,grengojbo/satchmo