Tried solving the Scalar <-> CvScalar problem.
(Will merge commits later.)