Performance improvements

Using cfsavecontent in renderArraySection as it's faster according to tests.

Creating java regex Pattern object only once

Replace partials into template at start to simplify the process.