Stop running field initialisers twice
Set fields to undefined initially
Update gitignore to include OS X object files.