Convert nested color functions

Previously only parsing where supporting the nesting. Now conversion is ok too.