Testcase from #324 passing
Added recursive attributes test and fix #324
Forgot to include the stack in subsequent serializes #324