adding collection.length() (long overdue!)
making RelationalModel.clear clear out its sub-objects as well