refactor arch specific attr handling
fix bug exposed by test_ArchOverrideInPackage
rename some more test cases to be more descripive