ElfParserLib: represent file as bytearray instead of a list() of chars

I want/need this for future changes (e.g. performance, ELF64 support).
sectionHeaderEntryToList: use bytearray(), simplify write loop