Added Model::countCollection() method
createFragmentFromArray now accepts and ignores nulls in arrays