Fixed compilation error in StructTest.
Added BooleanPtr class which points to an 8-bit boolean value. (#509)