attributes now require type to be created; Component::addattribute(name,type) added
adapted unit_tests to new attribute API