The meta-element name for domInputLocal is set to
"InputLocal", which prevents input elements from beeing
removed from samplers.
Indeed, if you look at domSampler.cpp you'll notice the
following line in domSampler::registerElement() (line 36)
// Add elements: input
...which basically states that children of domSampler
elements have the name "input".
When removing a domInputLocal from its parent
domSampler, using removeFromParent, the two names are
compared and of course do not match.
You can fix this if you change line 33 in
domInputLocal.cpp from :
_Meta->setName( "InputLocal" );
_Meta->setName( "input" );
...but I'm not sure it won't mess things up elsewhere.
Hope this helps.