[ALOY-938] Conditional TSS creates unexpected _.extend() calls

Fixes https://jira.appcelerator.org/browse/ALOY-938

Requires and includes associated test updates, which were comparing generated code to expected output.