Add a special case for `wait: true` in toJSON, from https://github.com/PaulUithol/Backbone-relational/commit/0e4f8784937e04bf048f89caf96168bf5f859914