Add support for automatic indexes

+ Store indexes according to spec[:index]
+ Pass object to update fun instead of decoded value