Weird limit in number of function clauses when running on aarch64

I think I see why, can you apply this commit and see if it fixes the problem?