Made textColor work again with new Crafty.assignColor - fixed #804

Fixed the textColor function mentioned in #804

Made a test which would have caught the error.