Fixes #4739: add a method to allow to add lines in ini section