fixed constraint value ranges
started to refactor flipping constraint definition using new approach
added new motion templates needed for flipping action
minor change in exec trace query predicate