Fixed bug in triangle attribution mechanism that lost attribute information if it was tried to set an attribute on a triangle element.