* Fix an unused variable warning in js_sync.hpp * Add support for aggregates on arrays of primitives * Update documentation and typescript declarations * Update collection.js