Support instanceof d3.{color,rgb,…}

This also makes it possible to create a subclass of d3.color outside of the core library, which would then support automatic interpolation.