mongoid bug fix & Time#to_json bug fix.