Implement template haskell support for StaticValues.