attributes are now copied when merging devicetypes. Fixes #37
AttributeValues are copied when copying device. Fixes #38