fix typo in ameliabind and check for errors when it's called with just one argument