Fixed issue where we could not render a type.

We can now use the render_loop($type) to render a
type of loop template, based on the type we pass in.