Implementing Marshaler and Unmarshaler interfaces for Macaroon and Caveat.

Given the above change, this loop becomes redundant.