Fix for when working with nested color functions

Appears to have been attempting to convert arg.value, instead of
arg which is undefined until set.
Merge pull request #9 from hughsk/fix-convert

Fix for when working with nested color functions