Support nested color function

Fix parsing issue causing "Missing closing parentheses" even if it
looks fine.
Also, better error reporting when possible.

Should close ianstormtaylor/rework-color-function#4