Make color instance be a real instance

For now `(new Color) instanceof Color === false`, which makes inavailable any Color instance detection.
The patch fixes this issue as well as adds detection of `Color` instance as an input argument.