B-007 fixed bug lingering for years that caused sometimes assertion complaining 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
Merge pull request #4 from jsbattig/fix_decal_and_format_code

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