There were some leaks/ownership problems with texture outlines and unit ...

...actions, and they were fixed + replaced with unique_ptr. In addition, the attribute-map used an unsafe casting method and was replaced with a typesafe operation