Don't use int casting hack when comparion entity references

Now using plain old byte-for-byte comparisons. Performance-wise the
difference is acceptable, but it does add more than 100 bytes to the
library. :-(
2 files changed