Add support for customAttrCollapse. Closes #98