Implement Strata serializer function.

Closes #14.