Implemented `obj.collect(p)`. Close #323.