[IZPACK-1125] ConfigurationInstallerListener - footer comments are not preserved

During merging configuration using the ConfigurationInstallerListener, there get lost footer comments not followed by another uncommented key-pair value.

This affects Windows INI files and option files, like Java Service Wrapper configurations and property files.

Added also a unit test for this with several file types.

Additionally fixed all compiler warnings in the appropriate utils.