Improvement to Consumes Deserialization

Related: #713 and #657
you can use `enhanced for` instead