support for referencing and discarding custom StructAllocationStack