Refactored out typeRenderer() to handle arrays better.