core: fix reset of attributes in bars when "resetcolor" is used (closes #41)