CLN/TST: remove dead code and add pytables tests
CLN: remove more dead code re cmp_ops on scalars