Minor refactoring

More elegant (hopefully) way to write functions in Data.Ini and couple of HLint suggestions