Disallow statements between overloads

Ensure that overloads are consecutive when checking functions.
this fixes #75 and #92