Add failing test for DDC-3160
[DDC-3160] Change to fix that was implemented for DDC-2996.

A fix for DDC-2996 was implemented that broke quite a few extensions.

This commit is an attempt to fix the DDC-2996 bug without the adverse side effects seen in DDC-3160.

Basically, if changes are detected that would cause a changeset to be made, but the entity is awaiting insertion, the code will not save the changeset nor flag the entity as awaiting updating in the Unit of Work.

Some styling tweaks based on Pull Request guidelines.
Fix test issues.
Merge pull request #1074 from zimmermanj42/DDC-3160

[DDC-3160] Alternate fix for DDC-2996 bug