Remove function expressions outside the draw cycle
Stop allocating memory in draw cycle

- Get arrays from a pool of objects
- Clear object literals instead of creating new ones
Increase array pool to 200
Add tests for array object pool
Merge pull request #1302

Conflicts:
	test/ui/component-spec.js
	ui/component.js