Arrays returned from routes / controllers are now turned into JSON. Closes #800.