ligd: RType: When checking for equality, check for identity first

This can speed up things
CompanyTest: Make Rep defs values where possible

This speeds up execution of the 10% salary increase benchmark, it
now takes about 1400ns instead of 2400ns.
Merge branch 'master' into rep-simplify