-Xlint:unchecked compiler arg added, and fixed issues reported by it