New LocParam: ValueSnippets

Allows to specify snippets that are functions of the Loc value as a LocParam
Plus some code cleanup