MongoDB: array operations; some fixes..