Add normalize method to AttributeMap which only takes leaf nodes into account