dataspace: added const modifiers to all relevant functions
insertEffects: lambda: include the argument in the closure r/w/a lists