Added a from_byte_slice which can decode a &[u8] to &T