Added some methods to ByteArray and String classes.
Added get/unget byte methods to IODevice class.