better error for missing inverse on hasMany/belongsTo

In response to #1986