Fix errors when parsing functions whose first parameter defaults to NULL
Package record manipulation functions
Apps should always depend on packrat
getPackageRecords should respect lib.loc
refactor