Fix getValue generate warning at invalid offset
Change EMongoArrayModel::offsetSet() behavior
Remove unused code