Fix recursion in GetValueFn<T>
Merge pull request #369 from BruceCowan-AI/FixRecursion

Fix recursion in GetValueFn<T>
A small start ...