Hey Aurora,
The way I intended it was to make the data-type as `aovc myColorAOV` and `aovv myValueAOV` similar to LightGroups, and then match the name to an `aov_output` node and do a separate ShaderAssignment to the object. You should have the attribute `cycles:aov:myColorAOV` or `cycles:aov:myValueAOV` assigned.
There was a bug pre-Cycles X where only SVM was supported and OSL didn't work with this:
I just did a test here with both OSL and SVM and I can't get it to work anymore so I'll go digging and fix this one, at least for SVM.
Cheers