Store fields and methods in list

Store fields and methods in list, since there is no point in using a dictionary and it just adds extra code. Also, this fixes the issue that DAD can't handle multiple fields with the same name.