fixed bug in consume()
first commit: unify different serialization options
added new methods to auto-determine ProvenanceCollection response type; updated for usage