A less bad implementation of Append in SqlBuilder.

Includes a test to verify that the implementation is broken for a
specific implementation.