parse: Use GSlice for allocating and freeing links and chains