Clean up useless casts/imports & other small fixes
Created by: Koward
Lambdas expressions that could be replaced with method references have been. In some cases unsafe List were used instead of List so I changed that as well. All functionality should (and seems in my tests) the same. Added in a clean up too, as there's no downside to it.