oo.compare: Cover boolean as well as number and string primitives

Change-Id: I5f0b900ef29d54f12d7eca1a37c874532e93a366