Added static_assert to elwise types