Replace compile tests that check if types are copy constructible and copy assignable with normal tests that use type_traits (if available).