Fix remaining issues with writing and merging FeatureSets.

- NDJWriter no longer has a type error.
- write_feature_file more reliably extracts file extension
- FeatureSet.filtered_iter doesn't screw up feature names anymore.