Fix some deprecated SequenceFile.Writer creator methods

Removed unused variables and other minor cleanups (like using interfaces
instead of collection implementations).
Fix more deprecated API usage