diff --git a/applications/test/dictionary/blockMeshDict1.calc b/applications/test/dictionary/blockMeshDict1.calc
index 91dbbd10a62eddc1f1c5a222b92d06a58a3de347..1045cedb484c5dc4c29b2854519d396bd37e87d7 100644
--- a/applications/test/dictionary/blockMeshDict1.calc
+++ b/applications/test/dictionary/blockMeshDict1.calc
@@ -32,7 +32,7 @@ vertices
 (
     (0.0    0.0 0)      //0
     (10     0.0 0)
-    (10     0.0 0)      //2
+    #calc #{ vector(10, 0, 0) #} //2
     (0.0    0.0 0)
 
     (0.0    $minY $z)   //4
diff --git a/applications/test/dictionary/blockMeshDict1.eval b/applications/test/dictionary/blockMeshDict1.eval
index 6dd94e3cd968cfdb23e505e71e9d54abc21f7937..048389c2c325408595f5c9641b7580345cffffb8 100644
--- a/applications/test/dictionary/blockMeshDict1.eval
+++ b/applications/test/dictionary/blockMeshDict1.eval
@@ -32,7 +32,7 @@ vertices
 (
     (0.0    0.0 0)      //0
     (10     0.0 0)
-    (10     0.0 0)      //2
+    #eval{ vector(10, 0, 0) } //2
     (0.0    0.0 0)
 
     (0.0    $minY $z)   //4
diff --git a/etc/codeTemplates/dynamicCode/codeStreamTemplate.C b/etc/codeTemplates/dynamicCode/codeStreamTemplate.C
index bedf07b8a6dfb64391b39e9c033335d20322fc7b..f88eda7a15eec4659b98fdb29c5a7a71241b18b2 100644
--- a/etc/codeTemplates/dynamicCode/codeStreamTemplate.C
+++ b/etc/codeTemplates/dynamicCode/codeStreamTemplate.C
@@ -31,6 +31,8 @@ Description
 #include "dictionary.H"
 #include "Ostream.H"
 #include "Pstream.H"
+#include "pointField.H"
+#include "tensor.H"
 #include "unitConversion.H"
 
 //{{{ begin codeInclude
@@ -51,7 +53,7 @@ ${localCode}
 
 // * * * * * * * * * * * * * * * Global Functions  * * * * * * * * * * * * * //
 
-extern "C" void ${typeName}(Ostream& os, const dictionary& dict)
+extern "C" void ${typeName}(Foam::Ostream& os, const Foam::dictionary& dict)
 {
 //{{{ begin code
     ${code}