Include ScalarCoupleable in inheritance of Function.  Refs issues #4267

Added default thread id of 0 as part of issue #4267 .