Experimental code to pack structures in Swift