wrap_c: add preliminary enum support