Make output buffer for ERB files slightly more dynamic

This will allow custom output buffers to be passed in to capture
result. Defaults to an array, but more advanced view systems using ERB
may require buffers to be stacked, which this now allows.