STD: Add length property to various IO classes

A length property would come in handy on classes such as BytesInput.