Move the function into resources-util to be sourced.
Refactor run-time checks for unique paths (in path=value inputs) to be
turned on / off at run-time by an argument. For now disable these checks
until their performance impact can be assessed.