fix scripting of attribute and attribute definition entities