Rename helper functions to be private (underscore suffix)

Refactored value->positions mapping to work for arbitrary ranges (now both column and header validation code can use it).

Fixes #16. Related to #15.