Getting valuesToNA to work properly, applying what I learned working on valuesToNA to other functions in the package.