restore the namespace hooks + tests removed in the previous commit

    - and add a comment to prevent someone else making the same mistake!
    - also clean them up slightly: use fixed/static (but internally dynamic)
      subs rather than generating them anew for each import
bump version to 0.10 + update changelog