Add early guard and more detailed error message for methods not matching scala signatures.