Switch to scala-maven-plugin. Remove some unneeded declarations
Fix compile error about implicit ordering for (K,S)