Some oo refactoring to enable all cards to have attributes aggregated bitwise
Added some unittests related to CheckComposedAttribute and SetComposedAttribute