removed duplicated addition of assembly attributes
left checking of duplicated attributes declared without adding them
tests for issue 498. Closes #498