Function methods should not accept non functions

Fixes #1576