Creates a closure over a variable and returns its getter and setter.
make.varClosure(initVarVal = NULL, valValidator = NULL)
the initial value of the closed variable.
an optional function to validate each value. Function must return boolean. If this function returns FALSE for any value, an error is thrown.
list with entries 'get' and 'set' which are getter/setter for the variable that a closure was made over.