Completed support for custom keys and attributes in generating attributedString from dictionary representation. Improved efficiency of doing so.