fix ini parsing, also consider sections, add toArray method