Added macro to prevent IndexOutOfBounds exception, added single value byte unpacker method and associated tests.