The first parameter of the resource serialization function now takes the representation name. It does so to be more coherent. Closes #4