Index: src/Tuples/Explode.cc
===================================================================
--- src/Tuples/Explode.cc	(revision 9ea38de4515063905b11e8dd973b76e59c7671a8)
+++ src/Tuples/Explode.cc	(revision 417117ea3f54c45c0a3977a8ca6d9f0924f73be9)
@@ -129,5 +129,4 @@
 			for ( const ast::Expr * expr : tupleExpr->exprs ) {
 				exprs.emplace_back( applyCast( expr, false ) );
-				//exprs.emplace_back( ast::ptr< ast::Expr >( applyCast( expr, false ) ) );
 			}
 			if ( first ) {
Index: src/Tuples/Explode.h
===================================================================
--- src/Tuples/Explode.h	(revision 9ea38de4515063905b11e8dd973b76e59c7671a8)
+++ src/Tuples/Explode.h	(revision 417117ea3f54c45c0a3977a8ca6d9f0924f73be9)
@@ -210,5 +210,5 @@
 			}
 			// Cast a reference away to a value-type to allow further explosion.
-			if ( dynamic_cast< const ast::ReferenceType *>( local->result.get() ) ) {
+			if ( local->result.as< ast::ReferenceType >() ) {
 				local = new ast::CastExpr{ local, tupleType };
 			}
@@ -220,5 +220,4 @@
 				// delete idx;
 			}
-			// delete local;
 		}
 	} else {
