Fix compilation error when compiling classes or instances that define predicate aliases