adds example paramfile to comments in mortar core, adds pig param to toggle type inference, tests pass
  -- fixes bug where type is set to NULL if null is most common value