Added support for `Functions` as a value for `datastore.select()` / `datalist.where`, added negative test case for `state.previous`