Enable all java warnings in pom.xml
Fix java warnings

- Use wildcards in IsDistinct
- Remove Constants.constantList (too much effort to solve this varargs thing)