Add allocation and freeing functions for struct refs