fix collection.clear没有将$model.length置为零的BUG