Use KVC instead of a fake object struct to set ivars.

Seems like a safer bet, KVC is a more stable API.
Buffer stderr when running logic tests.

Before this, logic tests that output >16kb to stderr would cause xctool to hang.