Update path.js

check for LazyArray in model.query