coerce to db_value before querying index
coercion is now automatic
updated indexes (+test)
don't think we need to be overly cautious
Merge pull request #95 from onefinestay/fix_indexes_when_changing_type

fix indexes when changing type of an instance