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

I've done intToByte & longToByte using macros to allow for compile-time checks. Comment included for cases when it is difficult to determine values at compile-time.