traits: added partial trait template captures and test.
test/general/primitive: added test.