BUG-582: optimize BinaryType

This optimizes the defintion of BinaryType, such that it is smaller and
faster.

Change-Id: I1b7aeca92823743e0fd1995ac4476a3e3cf26698
Signed-off-by: Robert Varga <rovarga@cisco.com>
BUG-382: optimize BooleanType

This optimizes the BooleanType definition, reducing it's class memory
footprint.

Change-Id: Ib837216703e5ab19cefd3604a2caa185b7733cbd
Signed-off-by: Robert Varga <rovarga@cisco.com>
Merge changes Ib8372167,I1b7aeca9

* changes:
  BUG-382: optimize BooleanType
  BUG-582: optimize BinaryType