Improve Entity->abs_cmp speed and add test for string comparison