work with where entity
implement all where entities, but no tests
add .dialyzer.ignore
some tests for where entities
fix types for where entities