Method and function calls on ADT enums seem to be broken, they cause a segfault. C-like enums work fine. Not sure what's going on here