Compile fix for the ValueFunction tests.
Fixed the failing function tests.
Added two missing constLRef tests for Function.