template: interpolate builder name in ParseTemplate

i believe this fixes #858, though there may be a more elegant approach