helper/traits: Fix has_X functions

! Explicitly specify the function call for the _def_member_test macro,
  so has_begin and has_end actually work