Fix toArray() in CollectBoundColors and CollectFreeColors
Add TODO for removal of instanceof
Add tests for CollectBoundColors