B-007 fixed bug lingering for years that caused sometimes assertion comp...

...laining about wrong datatype in a place where it was using method addRef when should use add and make a copy of the original object.

Also passed code through code formatter, the previous format was a total unreadable mess