Include ScalarCoupleable in inheritance of Function.

 Function now inherits from ScalarCoupleable so that scalars can be used in functions. Refs issues #4267