Detect early that static function lookup doesn't work.

refs #9.