Fix bug in crud.js getKey
Implement toArray in pipeline.js