lazy reactive functions

This is an implementation of lazy evaluation for reactive functions.