Always flatten data on server before sending to client. Fixes #71. Fixes #154.