allow readbytes() on Cmd type
Merge pull request #4140 from heptal/readbytes

allow readbytes() on Cmd type