to_hash_for_machine will now be called on non-relational objects, if they respond to it
added Date index field based on string