Inital attempt to create custom serialiser for proxys. Work in
progress.