Implement working push/pop CodeWriter.