add check_relation for integrity checking of relational operations

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>