Fixed some bugs in ConfigSet and CreativeMatrix.

Also added tests for both primitives.