MAYA API : nested ramp attribute working?

Hi everyone , I am on a node which does a lot of coordinates blending , and i wanted to add a way for not linear blending , ofc the best choice is the ramp attribute, problem is that i need one ramp attribute for each entries on a array attribute , and here several problem comes.

First of all i cant hook up an AEtemplate when the attribute ramp get nested ,
I tried then to use a gradientControl from python and hook it up to my attribute but gives weird error
Then i used an gradientControlNoAttr (thanks to cedric for the ideae node.) and built myself the code to update the attributes in my node.
Everything was working until in the compute node i tried to get valueAtCurrent position and keeps give me back a 0 . No matter what , but the graph isnt flat i checked it through scripting.

So any idea how to make it working this nested ramp attribute??