Support defining functions with zero parameters.

Add a simple test for that.