Add compiler argument -Xlint:unchecked to maven-compiler-plugin

This argument enables all detailed warnings about unchecked or unsafe operations.
Instead of just getting a general warning that your program contains them, you'll
get a detailed list of parts of your code that contains unsafe operations.