Add FunctionObject.ds

Basic test cases included.